<!DOCTYPE html>
<html lang="en" >
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <link rel="stylesheet" href="/js/elementui/index.css">
    <link rel="icon" href="data:;base64,=">
</head>
<style>
    .el-header {
        background-color: #B3C0D1;
        color: #333;
        line-height: 60px;
    }

    .el-aside {
        color: #333;
    }
</style>
<body>
<div id="app" class="divBox">
    <el-container style="height: 950px; border: 1px solid #eee">
        <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
            <el-menu :default-openeds="['1', '3']">
                <el-submenu :index="fun.id" v-for="fun in functions">
                    <template slot="title"><i :class="fun.icon"></i>{{fun.name}}</template>
                    <el-menu-item-group>
                        <el-menu-item :index="cfun.id" v-for="cfun in fun.subFunctions">
                            <a :href="cfun.url" target="main">{{cfun.name}}</a></el-menu-item>
                    </el-menu-item-group>
                </el-submenu>
            </el-menu>
        </el-aside>
        <el-container>
            <el-header style="text-align: right; font-size: 12px">

            </el-header>

            <el-main>
                <iframe name="main" style="height: 100%;width: 100%;border: 0px"></iframe>
            </el-main>
        </el-container>
    </el-container>
</div>
</body>
<script src="/js/vue/vue.js"></script>
<script src="/js/axios/axios.min.js"></script>
<script src="/js/elementui/index.js"></script>
<script src="/js/qs/qs.min.js"></script>
<script>
    new Vue({
        el:'#app',
        data() {
            return {
                functions:null
            }
        },
        mounted(){
            axios.get("/functions-username").then(value => {
                if (value.data.code==1){
                    this.functions = value.data.data
                }
            })
        }
    });
</script>
</html>

